package com.autotest.glin.util;

import me.grison.jtoml.impl.Toml;

import java.io.File;
import java.io.IOException;
import java.util.Map;

public class Config {

    public static Map<String, Object> getCaseConf(String caseName) throws IOException {
        String confPathString = "src/main/resources/conf.toml";
        File confFile = new File(confPathString);
        Toml toml = Toml.parse(confFile);
        Map<String, Object> confMap = toml.getMap(caseName);
        return confMap;
    }

    public static void main(String[] args) {
        // TODO Auto-generated method stub

    }

}
